<?php
/**********************************************************************//**\file
	Armory Install Detect

	Description:  Detects locally-enabled libraries and helper programs.
*******************************************************************************/
	
	$detection = array(
		'fopen' => FALSE,
		'curl' => FALSE,
		'wget' => FALSE
	);

	# Detect fopen
	if(ini_get('allow_url_fopen'))
	{
		$detection['fopen'] = TRUE;
	}

	# Detect cURL
	$extensions = get_loaded_extensions();
	if(array_search('curl', $extensions))
	{
		$detection['curl'] = TRUE;
	}

	# Detect wget
	if(!is_null(shell_exec('wget -V')))
	{
		$detection['wget'] = TRUE;
	}

	var_dump($detection);
?>
